package net.oschina.app.protocol.general;


import net.oschina.app.bean2.GeneralNewsDetailBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.AccessService;

import retrofit2.Call;

/**
 * Created by Shinelon on 2017/1/15.
 */

public class NewsDetailProtocol extends AccessProtocol<GeneralNewsDetailBean> {


    @Override
    protected void callNet(AccessService accessService) {
        if (mPath!=null) {
            Call<GeneralNewsDetailBean> call = accessService.getNewsDetailDatas(mPath);
            call.enqueue(callback);
        }
    }

}
